export function NewsList() {
  return (
    <main className='max-w-[300px] w-full space-y-6 px-4'>
      <header>
        <h3>新闻列表</h3>
      </header>
      <div>
        <br />
        {newsList.map((item) => (
          <div key={item.id}>{item.title}</div>
        ))}
      </div>
    </main>
  );
}

interface INews {
  id: number;
  title: string;
}

const newsList: INews[] = [
  { id: 1, title: '新闻1' },
  { id: 2, title: '新闻2' },
  { id: 3, title: '新闻3' },
];
